/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cn.pconline.activity.util;

import org.springframework.jdbc.core.simple.SimpleJdbcTemplate;

/**
 *
 * @author pc
 */
public class Functions {

    public static boolean hideVote(long userId, long photoId){
        long temp = EnvUtils.getEnv().getBean(SimpleJdbcTemplate.class).queryForLong("select userId from baby110525_photo where photoId = ?", photoId);
        return (userId == temp);
    }

}
